package com.ztesoft.web.common.customdb.dao.dto;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils;

import com.ztesoft.framework.dto.AbstractDto;
import com.ztesoft.framework.util.Utils;

public class DmTaskStageDto extends AbstractDto{
	private Integer  dmInfoId;
	private Integer  dmTaskId;
	private Integer  dmStrategyId;
	private Integer  dataType;
	private Integer sourceDataId;
	private String  checkObjName;
	private Integer  stage;
	private String  state;
	private Date stateDate;
	private Date  createDate;
	private Date  taskStartTime;
	private Date  taskEndTime;
	private String  errorDesc;
	private Integer  checkCount;
	private Integer  totalRecordCount;
	private BigDecimal  checkDataSize;
	private BigDecimal  totalDataSize;
	private Integer  audiStaffId;
	private Integer  isCheck;
	private Date  checkDate;
	private Integer  nodeId;
	
	private String checkState;
	
	public String getCheckState() {
		return checkState;
	}
	public void setCheckState(String checkState) {
		this.checkState = checkState;
	}
	public void setDmInfoId(Integer dmInfoId) {
        this.dmInfoId = dmInfoId;
    }
    public Integer getDmInfoId() {
        return dmInfoId;
    }
    public void setDmTaskId(Integer dmTaskId) {
        this.dmTaskId = dmTaskId;
    }
    public Integer getDmTaskId() {
        return dmTaskId;
    }
    public void setDmStrategyId(Integer dmStrategyId) {
        this.dmStrategyId = dmStrategyId;
    }
    public Integer getDmStrategyId() {
        return dmStrategyId;
    }
    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }
    public Integer getDataType() {
        return dataType;
    }
    public void setCheckObjName(String checkObjName) {
        this.checkObjName = checkObjName;
    }

    /**
     * 具体分表名
     * @return
     */
    public String getCheckObjName() {
        return StringUtils.isBlank(checkObjName) ? checkObjName : checkObjName.trim();
    }
    public void setStage(Integer stage) {
        this.stage = stage;
    }
    public Integer getStage() {
        return stage;
    }
    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return StringUtils.isBlank(state) ? state : state.trim();
    }
    public String getErrorDesc() {
        return StringUtils.isBlank(errorDesc) ? errorDesc : errorDesc.trim();
    }
    public void setCheckCount(Integer checkCount) {
        this.checkCount = checkCount;
    }
    public Integer getCheckCount() {
    	if(Utils.isEmpty(checkCount)){
    		return 0 ;
    	}else{
    		return checkCount;
    	}
    }
    public void setTotalRecordCount(Integer totalRecordCount) {
        this.totalRecordCount = totalRecordCount;
    }
    public Integer getTotalRecordCount() {
    	if(Utils.isEmpty(totalRecordCount)){
    		return 0 ;
    	}else{
    		 return totalRecordCount;
    	}
    }
    public BigDecimal getCheckDataSize() {
    	if(Utils.isEmpty(checkDataSize)){
    		return BigDecimal.ZERO;
    	}else{
    		 return checkDataSize;
    	}
	}
	public void setCheckDataSize(BigDecimal checkDataSize) {
		this.checkDataSize = checkDataSize;
	}
	public BigDecimal getTotalDataSize() {
		if(Utils.isEmpty(totalDataSize)){
    		return BigDecimal.ZERO;
    	}else{
    		 return totalDataSize;
    	}
	}
	public void setTotalDataSize(BigDecimal totalDataSize) {
		this.totalDataSize = totalDataSize;
	}
	public void setAudiStaffId(Integer audiStaffId) {
        this.audiStaffId = audiStaffId;
    }
    public Integer getAudiStaffId() {
        return audiStaffId;
    }
    public void setIsCheck(Integer isCheck) {
        this.isCheck = isCheck;
    }
    public Integer getIsCheck() {
        return isCheck;
    }
   
    public Date getCheckDate() {
    	if (checkDate== null) {
    		return null;
    	}
		return (Date) checkDate.clone();
	}
	public void setCheckDate(Date checkDate) {
		if (checkDate == null) {			
			this.checkDate = null;
		} else {			
			this.checkDate = (Date) checkDate.clone();
		}
	}
	public void setNodeId(Integer nodeId) {
        this.nodeId = nodeId;
    }
    public Integer getNodeId() {
        return nodeId;
    }

	public Date getStateDate() {
		if (stateDate != null) 
			return (Date) stateDate.clone();
		return null;
	}

	public void setStateDate(Date stateDate) {
		if (stateDate == null) {
			this.stateDate = null;
		} else {			
			this.stateDate = (Date)stateDate.clone();
		}
	}

    public Date getCreateDate() {
		if (this.createDate != null) 
			return (Date) createDate.clone();
		return null;
    }

    public void setCreateDate(Date createDate) {
		if (createDate == null) {
			this.createDate = null;
		} else {			
			this.createDate = (Date)createDate.clone();
		}
    }

    public Date getTaskStartTime() {
		if (this.taskStartTime != null) 
			return (Date) taskStartTime.clone();
		return null;
    }

    public void setTaskStartTime(Date taskStartTime) {
		if (taskStartTime == null) {
			this.taskStartTime = null;
		} else {			
			this.taskStartTime = (Date)taskStartTime.clone();
		}
    }

    public Date getTaskEndTime() {
		if (this.taskEndTime != null) 
			return (Date) taskEndTime.clone();
		return null;
    }

    public void setTaskEndTime(Date taskEndTime) {
		if (taskEndTime == null) {
			this.taskEndTime = null;
		} else {			
			this.taskEndTime = (Date)taskEndTime.clone();
		}
    }

    public void setErrorDesc(String errorDesc) {
        this.errorDesc = errorDesc;
    }
    
	public Integer getSourceDataId() {
		return sourceDataId;
	}
	public void setSourceDataId(Integer sourceDataId) {
		this.sourceDataId = sourceDataId;
	}
	
}